package com.sun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/29 15:47
 */
@Controller
@RequestMapping("/user")
@ResponseBody
public class UserController {
    /*
    新增
     */
    @RequestMapping("/add")
    public String add(){
        return "新增操作";
    }
    /*
    删除
     */
    @RequestMapping("/delete")
    public String delete(){
        return "删除操作";
    }
    /*
    修改
     */
    @RequestMapping("/update")
    public String update(){
        return "修改操作";
    }
    /*
    查询
     */
    @RequestMapping("/select")
    public String select(){
        return "查询操作";
    }
}
